<?php
class JobArea extends AppModel {
	var $name = 'JobArea';
	var $useTable = 'job_area_inner';
	var $belongsTo = array('SysParams' =>  
                            array('className'  => 'SysParams', 
                                  'conditions' => "\"SysParams\".deleted is null AND \"SysParams\".kbn='area_id'",  
                                  'order'      => '',  
                                  'foreignKey' => 'job_area_id'  
                            )       
                      ); 
               
    function delByJobid($jobId){
    	$this->execute("update job_area_inner set deleted=now() where job_id=$jobId;");
    }                   	
}
?>
